Skip to content

curl fall back to wget#22

Open
baylanger wants to merge 1 commit into
CarlosCuezva:mainfrom
baylanger:patch-4
Open

curl fall back to wget#22
baylanger wants to merge 1 commit into
CarlosCuezva:mainfrom
baylanger:patch-4

Conversation

@baylanger

Copy link
Copy Markdown

The current use of "curl" in this script breaks on Synology NAS.

This PR adds to the config which download app (curl or wget) to use based on a file that is specific to Synology.

That said, the very first version I had made was adding a "curl check" and if it failed, then it would fall back to wget. Somehow I think this solution is still better since it can handle other odd curl on NAS or other Linux distribution.

Let me know what you think.

Note: it's not possible to completely silence wget with arguments. At least not on Synology unless using a redirect aka 2>/dev/null

The implement of curl on Synology NAS is currently breaking up this script.

This PR adds to the config which download app (curl or wget) to use based on a file that is specific to Synology.

That said, the very first version I had made was adding a "curl check" and if it failed, then it would fall back to wget. Somehow I think this solution is still better since it can handle other odd curl on NAS or other Linux distribution.

Let me know what you think.

Note: it's not possible to completely silence wget with arguments. At least not on Synology unless using a redirect aka 2>/dev/null
@CarlosCuezva

Copy link
Copy Markdown
Owner

Thanks for your PR, I'll take a look at it calmly because I don't agree with Adrian Kumpf's latest move with Teslamate.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants